var self = this;
$(function () {
    var f = function () {
        console.error('ran at ' + new Date(), window.nextTimeout);
        var selectors = [
            '.topBaner',
            '#SLIDE_BANNER',
            '#FIXED_FLOAT_BANNER_0',
            '#FIXED_FLOAT_BANNER_1',
            '#FIXED_FLOAT_BANNER_2',
            '#FIXED_FLOAT_BANNER_3',
            '#rightSideBar',
            'iframe',
            '.linksite',
            '.content-right',
            '#RIGHT_LOGO_1',
            '#RIGHT_LOGO_2',
            '#RIGHT_LOGO_3',
            '#RIGHT_LOGO_4',
            '#LARGE_LOGO_1',
            '#LARGE_LOGO_2',
            '#LARGE_LOGO_3',
            '#LARGE_LOGO_4',
            '#LARGE_LOGO_5',
            '#ARTICLE_BANNER'

        ];

        _.forEach(selectors, function (selector) {
            if ($(selector).size() > 0) {
                console.log(selector + ': Killed ' + $(selector).size() + ' instances');
                $(selector).remove();
            }
        });

        $('body').removeAttr('style');

        if (isNaN(window.nextTimeout)) {
            window.nextTimeout = 1;
        }

        window.nextTimeout *= 2;
        window.setTimeout(f, window.nextTimeout);
    };

    f();
});